package xyz.scoder;

public class SecondPizzaStore extends PizzaStore {
    @Override
    protected Pizza createPizza(String type) {
        Pizza pizza = null;

        switch (type) {
            case "Henan":
                pizza = new HenanPizza();
                break;
            default:
                System.out.println("Sorry，" + type + " pizza 暂未加入肯德基豪华午餐");
                break;
        }

        return pizza;
    }
}
